<?php
    /*
     * JOOMLA
     */
    if(ISSET($user)) die( 'Restricted access' );

    define( '_JEXEC', 1 );
    define( 'DS', DIRECTORY_SEPARATOR );
    define( 'JPATH_BASE', realpath(dirname(__FILE__).DS.'..' ));

    require_once ( JPATH_BASE .DS.'includes'.DS.'defines.php' );
    require_once ( JPATH_BASE .DS.'includes'.DS.'framework.php' );

    $mainframe = JFactory::getApplication('site');
    $mainframe->initialise();
    $user  = JFactory::getUser();
    $jid   = $user->get('id');
    $jname = $user->get('name');

    // Nur mit Joomla
    if($user == '' || $jid == 0) die( 'Restricted access' );
?>